package one.stand.fallback;

import com.jmp.feign.WechatServiceFegin;
import one.stand.model.ResultModel;
import one.stand.request.ComponentProgramRequest;
import one.stand.request.ComponentVerifyTicketRequest;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Administrator
 */
@Component
public class WechatServiceFallBack implements WechatServiceFegin {
    @Override
    public ResultModel addTemplate(@RequestParam("appId") String appId) {
        return ResultModel.fail();
    }

    @Override
    public String wxcallback(ComponentVerifyTicketRequest request) {
        return "fail";
    }

    @Override
    public String program(ComponentProgramRequest request) {
        return "fail";
    }
}
